<template>
	<view>
		<view class="group-box" @click="authTo('pagesA/group/group')">
			<view class="group-l">
				<image :src="oss(invite.face_image)" mode=""></image>
				<view class="group-title">
					<view class="title">{{invite.name}}</view>
					<view class="name">{{invite.introduce}}</view>
				</view>
			</view>
			<image src="https://www.stck.cc/my/19.png" mode=""></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				invite:{}
			}
		},
		mounted() {
			this.getinvite()
		},
		methods: {
			getinvite(){
				uni.$u.http.post('/index/invite').then(res => {
					if (res.code == 1) {
						this.invite = res.data
					}
				}).catch((res) => {})
			},
		}
	}
</script>

<style lang="scss">
.group-box {
		width: 558rpx;
		height: 95rpx;
		padding: 32rpx;
		background: #FFF9EE;
		border-radius: 24rpx 24rpx 24rpx 24rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: auto;
		margin-top: 32rpx;
		
		.group-l {
			display: flex;
			
			image {
				width: 95rpx;
				height: 95rpx;
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				opacity: 1;
			}
			.group-title {
				margin-left: 24rpx;
				.title {
					font-size: 32rpx;
					font-weight: bold;
					color: #333333;
				}
				.name {
					font-size: 24rpx;
					margin-top: 16rpx;
					font-weight: 500;
					color: #999999;
				}
			}
		}
		image {
			width: 18rpx;
			height: 28rpx;
		}
	}
</style>